

//引入权限菜单
import * as api from "@/api/transaction"
export default{
    namespaced: 'orders',
    state: {
        order:[]
    },
    getters: {},
    mutations: {
        SET_ORDER(state,payload){
            state.order = payload
        }
    },
    actions: {
        FETCH_ORDER({commit}){
            return api.getVipListApi()
            .then(res => {
              console.log(res);
              commit('SET_ORDER',res.data.data)
            })
        }
    },
}